package com.bi.onlineEducation.exception;

/**
 * @Author: chenYuTao
 * @CreateTime: 2021/9/3 10:03
 * @Description:
 **/
public enum BusinessHandleCodeEnum {

    SUCCESS(200, "成功"),

    HTTP_NETWORK_DELAY_ERROR(201, "http网络超时"),

    // 300 为领域调用错误
    File_HANDLE_ERROR(301, "文件处理异常"),
    DATA_HADNKE_ERROR(302, "数据解析异常"),
    DATA_CY_ERROR(303, "客户单号查询对应单号不存在"),
    HISTORY_RECORD_WIRTE_ERROR(304, "历史记录写入异常"),
    HISTORY_RECORD_READ_ERROR(305, "历史数据读取异常"),

    // 5开头,业务处理异常
    DEFAULT_BIZ_EXCEPTION(500, "业务解析异常：未知"),


    UNKNOWN_EXCEPTION(999, "系统异常");
    private Integer code;
    private String msg;

    BusinessHandleCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
